package com.system.common.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")  // 指定数据库表名
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String phone;
    private String image;
    private Integer gender;
    private Integer status;
    private Date createtime;
    private Date updatetime;
    @TableLogic
    private Integer isdel;

    @TableField(exist = false)
    private List<Address> addressList;
}
